<?php

namespace backend\modules\common\controllers;

use Yii;
use backend\extensions\ApiBaseController;
use backend\services\common\OptionService;

/**
 * 公共控制器
 */
class CommonController extends ApiBaseController
{
    public $noAuthActionIds = ['options'];
    
    /**
     * 选项
     */
    public function actionOptions()
    {
        $keys = Yii::$app->request->post('keys', []);
        $data = OptionService::getOptions($keys);

        return $this->jsonSuccess($data);
    }
    
}
